﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AUV5.Web.Testing
{
    public partial class VideoFormatConverter : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void submit_Click(object sender, EventArgs e)
        {
            //string upFileName = "";
            if (this.FileUpload1.HasFile)
            {
                //FormatConverter converter = new FormatConverter();
                //upFileName = Server.MapPath("/UploadFile/Test/" + FileUpload1.FileName);
                //this.FileUpload1.SaveAs(upFileName);
                //string ret = converter.Convert(upFileName,"/PlayFile/Test/",FormatConverter.VideoType.MP4, false);
                //if (string.IsNullOrEmpty(ret))
                //{
                //    Response.Write("转换成功！");
                //}
                //else
                //{
                //    Response.Write(ret);
                //}
                //InsertData(this.txtTitle.Text, fileName, saveName);
            }
        }
    }
}